package com.qqtech.qquan.sales.model;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.frame.model.BaseDomain;

@SuppressWarnings("serial")
public class SalesBase extends BaseDomain{

	//columns START
    /** 促销活动类型:1-满减;2-买赠 */
	private java.lang.Integer type;
    /** 活动名称 */
	private java.lang.String name;
    /** 店铺id (促销对象为平台类型时shopId无效)*/
	private java.lang.Integer shopId;
    /** 促销活动触发必要条件(如满99减50活动此数值为99) */
	private BigDecimal requirement;
    /** 补贴额度(如满99减50活动此数值为50) */
	private BigDecimal subsidy;
    /** 促销活动开始时间 */
	private java.sql.Timestamp startAt;
    /** 促销活动结束时间 */
	private java.sql.Timestamp endAt;
    /** 促销活动状态:1-有效;2-无效 */
	private java.lang.Integer status;
	/** 促销对象:1-平台范围;2-店铺范围 */
	private java.lang.Integer target;
	/** 促销店铺类型:1-商城;2-邻里店;3-社区店铺*/
	private java.lang.Integer shopType;
	/** 补贴类型:1-商家补贴;2-圈圈补贴*/
	private java.lang.Integer subsidyType;
	//columns END
	public SalesBase(){
	}

	public SalesBase( java.lang.Integer id ){
		this.id = id;
	}

	public void setType(java.lang.Integer type) {
		this.type = type;
	}

	public java.lang.Integer getType() {
		return this.type;
	}
	
	public void setName(java.lang.String name) {
		this.name = name;
	}

	public java.lang.String getName() {
		return this.name;
	}
	
	public void setShopId(java.lang.Integer shopId) {
		this.shopId = shopId;
	}

	public java.lang.Integer getShopId() {
		return this.shopId;
	}
	
	public void setRequirement(BigDecimal requirement) {
		this.requirement = requirement;
	}

	public BigDecimal getRequirement() {
		return this.requirement;
	}
	
	public void setSubsidy(BigDecimal subsidy) {
		this.subsidy = subsidy;
	}

	public BigDecimal getSubsidy() {
		return this.subsidy;
	}
	
	public void setStartAt(java.sql.Timestamp startAt) {
		this.startAt = startAt;
	}

	public java.sql.Timestamp getStartAt() {
		return this.startAt;
	}
	
	public void setEndAt(java.sql.Timestamp endAt) {
		this.endAt = endAt;
	}

	public java.sql.Timestamp getEndAt() {
		return this.endAt;
	}
	
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}

	public java.lang.Integer getStatus() {
		return this.status;
	}
	
	public java.lang.Integer getTarget() {
		return target;
	}

	public void setTarget(java.lang.Integer target) {
		this.target = target;
	}

	public java.lang.Integer getShopType() {
		return shopType;
	}

	public void setShopType(java.lang.Integer shopType) {
		this.shopType = shopType;
	}

	public java.lang.Integer getSubsidyType() {
		return subsidyType;
	}

	public void setSubsidyType(java.lang.Integer subsidyType) {
		this.subsidyType = subsidyType;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}

